#pragma once

#include <string>
using namespace System;
using namespace System::Runtime::InteropServices;

inline std::string MarshalString (String^ s)
{
	return (const char*)(Marshal::StringToHGlobalAnsi(s)).ToPointer();
}

inline std::wstring MarshalStringW (String ^ s)
{
	return (const wchar_t*)(Marshal::StringToHGlobalUni(s)).ToPointer();
}
